//
//  LHAVPlayerManager.h
//  EPA
//
//  Created by 卢浩 on 16/4/21.
//  Copyright © 2016年 卢浩. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface LHAVPlayerManager : NSObject

@property (nonatomic,strong) AVPlayer *avPlayer;

@property (nonatomic,strong) NSMutableArray *itemsArray;

@property (nonatomic,strong) NSMutableArray *radioDetailArray;

@property (nonatomic,assign) NSInteger currentIndex;

@property (nonatomic,strong) NSString *radioid;

//单例
+ (instancetype)shareInstant;

//开始
- (void)play;

//暂停
- (void)pause;

//上一曲
- (void)last;

//下一曲
- (void)next;

//刷新当前音乐并播放
- (void)replaceMusic;

//切换进度
- (void)seekToTime:(CMTime)time;

//更新音乐
- (void)replaceAVPlayerWithItem:(AVPlayerItem *)item;

- (void)setLeftMenuMusicView;

@end
